<!DOCTYPE html>
<html lang="en">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="utf-8">
  
  
  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>
    Linux常用语法汇总 |
    
    铁血军</title>
  
    <link rel="shortcut icon" href="/favicon.ico">
  
  <link rel="stylesheet" href="/css/style.css">
  <link rel="stylesheet" href="/css/technology.css">
  
    <link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">
  
  <script src="/js/pace.min.js"></script>
</head>
</html>
<body>
  <div id="container">
    <div id="wrap">
      <section class="outer">
  <article id="post-Linux常用语法汇总" class="article article-type-post" itemscope itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      Linux常用语法汇总
    </h1>
  

      </header>
    

    
      <div class="article-meta">
        <a href="/2019/07/16/Linux常用语法汇总/" class="article-date">
  <time datetime="2019-07-16T15:44:54.000Z" itemprop="datePublished">2019-07-16</time>
</a>
        
      </div>
    

    <div class="article-entry" itemprop="articleBody">
      

      

      
        <h2 id="文件处理语法"><a href="#文件处理语法" class="headerlink" title="文件处理语法"></a>文件处理语法</h2><p>cd——切换到指定的目录下，跟windos是一样的<br></p>
<h2 id="程序部署语法"><a href="#程序部署语法" class="headerlink" title="程序部署语法"></a>程序部署语法</h2><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">java -jar xx.jar   ————运行jar包&lt;br&gt;</span><br><span class="line">sudo nohup &amp; 程序   ————xshell退出后继续运行</span><br><span class="line">sudo fuser -k -n tcp <span class="number">80</span> ——————强制杀死某个端口的进程</span><br><span class="line">nohup java -jar xxx.jar &gt;soringboot.log <span class="number">2</span>&gt;&amp;<span class="number">1</span>&amp;</span><br><span class="line">————没有写入权限的文件夹重新定向</span><br><span class="line">netstat –nap</span><br><span class="line">————查看所有的进程及端口号</span><br></pre></td></tr></table></figure>


      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2019/07/16/Linux常用语法汇总/" data-id="ck3tufcqh0000bwt80ofhmd74"
         class="article-share-link">分享</a>
      
    </footer>

  </div>

  
    
  <nav class="article-nav">
    
      <a href="/2019/07/19/springBoot读取静态文件打包后资源加载报错问题/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            springBoot读取静态文件打包后资源加载报错问题
          
        </div>
      </a>
    
    
      <a href="/2019/07/16/springBoot项目打包及部署/" class="article-nav-link">
        <strong class="article-nav-caption">下一篇</strong>
        <div class="article-nav-title">IDEA进行springBoot项目打包及部署</div>
      </a>
    
  </nav>


  

  
    
  

</article>



</section>
    </div>
    <script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/lazyload.min.js"></script>
<script src="/js/busuanzi-2.3.pure.min.js"></script>


  <script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/technology.js"></script>

  </div>
</body>
</html>